<!DOCTYPE html>

<html>
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>

    <h3>测试AJAX</h3>

    <button type="button" id="xhr" >用XMLHttpRequest发送异步请求</button>
    <button type="button" id="fetch" >用FetchAPI发送异步请求</button>
    <div id="result"></div>

    <script src="/xhr.js" type="text/javascript"></script>
    <script src="/fetch.js" type="text/javascript"></script>

    <hr>

    <button type="button" id="parse">解析响应头</button>
    <script src="/parse.js" type="text/javascript" ></script>

</body>
</html>